#include<stdio.h>

/* Written by Filipe Moreira.
 * Sorts 3 given numbers
 * */
main(){

	int a,b,c;

	printf("Enter number a:");
	scanf("%d", &a);
	printf("\nEnter number b:");
	scanf("%d", &b);
	printf("\nEnter number c:");
	scanf("%d", &c);

	if (a < b && a < c){
		if (b < c){
			printf("Ordered numbers are: %d, %d, %d\n",a,b,c);
		} else { 
		 	printf("Ordered numbers are: %d, %d, %d\n",a,c,b);
		}
	} else if (b < a && b < c){
		if (a < c){
			printf("Ordered numbers are: %d, %d, %d\n",b,a,c);
		} else 
		 	printf("Ordered numbers are: %d, %d, %d\n",b,c,a);
	} else if (c < b && c < a){
		if (a < b){
			printf("Ordered numbers are: %d, %d, %d\n",c,a,b);
		} else 
	 		printf("Ordered numbers are: %d, %d, %d\n",c,b,a);
		
	}
	
}
